
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="materialCode" ><@label key="materialCode.C,colon">物料编号：</@label></label> <input type="text" name="materialCode" value="${condition.materialCode!''}" /></li>
                <li><label id="materialText" ><@label key="materialText.C,colon">物料描述：</@label></label> <input type="text" name="materialText" value="${condition.materialText!''}" /></li>
                <li style="width:250px;"><label><@label key="materialType.C,colon">物料类型：</@label></label> <select style="width: 120px;" name="materialTypeCode">
                        <option value=""><@label key="all.C">所有</@label></option> <#list materialTypes as type>
                        <option value="${type.materialTypeCode}"<#if condition.materialTypeCode?? && condition.materialTypeCode == type.materialTypeCode> selected="selected"</#if>>${type.materialTypeCode}-${type.typeText}</option> </#list>
                </select></li>
                <li style="width:150px;">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button id="st" type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>
<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="material_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="635" height="580" href="${rc.getContextPath()}/manage/material/addMaterial?navTabId=${navTabId!''}" rel="addMaterial" title="<@label key="addMaterial.C">新增物料</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="material_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="635" height="530" href="${rc.getContextPath()}/manage/material/editMaterial?id={material_code}&navTabId=${navTabId!''}" rel="modifyMaterial" title="<@label key="editMaterial.C">编辑物料</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="material_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="635" height="530" href="${rc.getContextPath()}/manage/material/viewMaterial?id={material_code}&navTabId=${navTabId!''}" rel="viewMaterial" title="<@label key="viewMaterial.C">物料详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="material_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/manage/material/deleteMaterial?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key="delMaterial.M">确认要删除选中的物料吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" orderField="materialText"<#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key="materialText.C">物料描述</@label></th>
                <th width="100" orderField="processCode"<#if (page.orderField?? && page.orderField == 'processCode')>class="${page.orderDirection!''}"</#if>><@label key="defaultProcessCode.C">默认工艺编号</@label></th>
                <th width="100" orderField="processText"<#if (page.orderField?? && page.orderField == 'processText')>class="${page.orderDirection!''}"</#if>><@label key="defaultProcessText.C">默认工艺描述</@label></th>
                <th width="100" orderField="materialTypeCode"<#if (page.orderField?? && page.orderField == 'materialTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="materialTypeCode.C">物料类型编号</@label></th>
                <th width="100" orderField="materialTypeText"<#if (page.orderField?? && page.orderField == 'materialTypeText')>class="${page.orderDirection!''}"</#if>><@label key="materialTypeText.C">物料类型描述</@label></th>
                <th width="100" orderField="workCenterCode"<#if (page.orderField?? && page.orderField == 'workCenterCode')>class="${page.orderDirection!''}"</#if>><@label key="defaultWorkCenterCode.C">默认工作中心编号</@label></th>
                <th width="100" orderField="workCenterText"<#if (page.orderField?? && page.orderField == 'workCenterText')>class="${page.orderDirection!''}"</#if>><@label key="defaultWorkCenterText.C">默认工作中心描述</@label></th>
                <th width="100" orderField="makelotsize"<#if (page.orderField?? && page.orderField == 'makelotsize')>class="${page.orderDirection!''}"</#if>><@label key="makelotsize.C">生产批量</@label></th>
                <th width="100" orderField="materialspec"<#if (page.orderField?? && page.orderField == 'materialspec')>class="${page.orderDirection!''}"</#if>><@label key="materialspec.C">物料规格</@label></th>
                <th width="100" orderField="materialLeadTimeNum"<#if (page.orderField?? && page.orderField == 'materialLeadTimeNum')>class="${page.orderDirection!''}"</#if>><@label key="LeadTime.C">提前期：</@label>(<@label key="day.C">日</@label>)</th>
                <th width="100" orderField="operationScheduleFlag"<#if (page.orderField?? && page.orderField == 'operationScheduleFlag')>class="${page.orderDirection!''}"</#if>><@label key="operationScheduleFlag.C">工序派工：</@label></th>
          </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as material>
            <tr target="material_code" rel="${material.materialCode!''}">
                <td><input name="ids" value="${material.materialCode!''}" type="checkbox"></td>
                <td>${material.materialCode!''}</td>
                <td>${material.materialText!''}</td>
                <td>${material.processCode!''}</td>
                <td>${material.processText!''}</td>
                <td>${material.materialTypeCode!''}</td>
                <td>${material.materialTypeText!''}</td>
                <td>${material.workCenterCode!''}</td>
                <td>${material.workCenterText!''}</td>
                <td>${material.makelotsize!''}</td>
                <td>${material.materialspec!''}</td>
                <td>${material.materialLeadTimeNum!''}</td>
                <td><#if material.operationScheduleFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
            </tr>
            </#list> <#else>
            <tr target="material_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="material_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>